import requests


url = 'https://www.xiaohua.com/userinfo/'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
}
str = 'ASP.NET_SessionId=bmpsb34hmntrvljhpxpewqwv; xiaohua_web_userid=120326; xiaohua_web_userkey=r2sYazfFMt/rxUn8LJDmUYetwR2qsFCHIaNt7+Zpsscpp1p6zicW4w=='

# print(str.split(';'))
dict_cookie = {}
for cookie in (str.split(';')):
    cookie_list = cookie.split('=', maxsplit=1)
    dict_cookie[cookie_list[0].replace(' ','')] = cookie_list[1].replace(' ','')
# print(dict_cookie)
# 发起get请求 携带cookie
res = requests.get(url, headers=headers, cookies=dict_cookie)
print(res.content.decode())